﻿<UserControl xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  x:Class="solitaire.PreferencesDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300" Canvas.ZIndex="1001">
    <Grid x:Name="LayoutRoot">
        <Rectangle Fill="#DDFFDD" RadiusX="5" RadiusY="5" Stroke="black" StrokeThickness="3"></Rectangle>
        <TextBlock HorizontalAlignment="center" Margin="0,5,0,0" Text="Solitaire Options" FontSize="20" Canvas.Left="130"></TextBlock>
        <TextBlock HorizontalAlignment="center" Foreground="Red" Margin="0,230,0,0" Text="Any Changes Will Start A New Game"></TextBlock>
        <StackPanel Margin="150,70,0,0" >
            <TextBlock Text="Draw Mode" FontWeight="bold" FontSize="12" TextDecorations="underline"></TextBlock>
            <RadioButton Content="Draw One" x:Name="rbDrawOne" GroupName="rbgDrawMode"></RadioButton>
            <RadioButton Content="Draw Three" x:Name="rbDrawThree" GroupName="rbgDrawMode"></RadioButton>
        </StackPanel>
        <StackPanel  Margin="150,150,0,0">
            <TextBlock Text="Options" FontWeight="bold" FontSize="12" TextDecorations="underline"></TextBlock>
            <CheckBox Content="Enable Vegas Rules"  x:Name="cbEnableVegas"></CheckBox>
            <CheckBox Content="Timed Game" x:Name="cbTimedGame"></CheckBox>
        </StackPanel>
        <StackPanel Orientation="Horizontal" VerticalAlignment="bottom" HorizontalAlignment="Center" Margin="0,0,0,20" >
            <Button x:Name="btnSubmitPrefs" Content=" OK "></Button>
            <Button x:Name="btnCancelPrefs" Content="Cancel" Margin="10,0,0,0"></Button>
        </StackPanel>
    </Grid>
</UserControl>
